#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<stdlib.h>
#include <time.h>
//非递归实现strlen
int main()
{   
    int n = 0;
    int count  = 0;
    char arr[] = "OMG";
    while (arr[n] != '\0')
    {
        count++;
        n +=1;
    }
    printf("%d ", count);

    return 0;
}
